import request from '@/utils/request'

const api = {
    basepath: '/fwgl/fwz'
}

export function saveFwh(parameter) {
    return request({
        url: api.basepath,
        method: 'post',
        data: parameter,
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        }
    })
}

export function delFwh(parameter) {
    return request({
        url: api.basepath,
        method: 'Delete',
        params: parameter
    })
}

export function getFwhList(parameter) {
    return request({
        url: api.basepath + '/list',
        method: 'Get',
        params: parameter
    })
}

export function getFwhInfo(unid) {
    return request({
        url: api.basepath + '/' + unid,
        method: 'Get',
    })
}

export function fwhListExport(parameter) {
    return request({
        url: api.basepath + '/export',
        method: 'Get',
        params: parameter
    })
}

export const fwhExport = api.basepath + '/export'